package com.code1030.utils;

import com.code1030.studentsystem.Student;

import java.util.ArrayList;

public class TestDemo {
    public static void main(String[] args) {
//        int[] arr = {1,2,3,4,5};
//        ArrayUtils.printArray(arr);
//        System.out.println(ArrayUtils.printArray(arr));

//        double[] arr = {1.5, 3.7, 4.9, 5.8, 6.6};
//        double sum = ArrayUtils.getAverage(arr);
//        System.out.println(sum);

//        ArrayList<Student> students = new ArrayList<Student>();
//        Student stu1 = new Student("1", "张三", 180, "湖南省常德市");
//        Student stu2 = new Student("2", "李四", 109, "湖南省长沙市");
//        Student stu3 = new Student("3", "王五", 79, "湖南省郴州市");
//        students.add(stu1);
//        students.add(stu2);
//        students.add(stu3);
//        Student selectObj = ArrayUtils.getAverageObj(students);
//        System.out.println(selectObj.getAge());
    }
}
